package cn.actionListener;

import cn.action.ExitAction;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class ExitListener implements ActionListener {
    private ExitAction exitAction;
    public ExitListener() {
        exitAction=new ExitAction();
    }
    @Override
    public void actionPerformed(ActionEvent e) {
        exitAction.exit();
    }
}
